﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyView.aspx.cs" Inherits="Pages_MyView" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>MyView</title>
    <link type="text/css" rel="Stylesheet" href="../CSS/PageStyle.css"/>
    <link type="text/css" rel="Stylesheet" href="../CSS/style.css"/>

    <script type="text/javascript">
        function confirmToDel() {
            return confirm("Do you want to delete it?");
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="width:80%; margin-left:auto; margin-right:auto">
        <div class="TurquoisePodHeaderNoHover" style="margin:20px 0 20px 0">
            <span>&nbsp MyView</span>&nbsp &nbsp 
            <span><a href="../user/SearchTicket.aspx">[Search View]</a></span>
        </div>
        <div id="condition_repeater">
            <asp:Repeater ID="rpt_condition" runat="server" 
                onitemdatabound="rpt_condition_ItemDataBound" 
                onitemcommand="rpt_condition_ItemCommand">
                <HeaderTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                        <tr  id="header">
                            <td class="RepeaterTableHead">No.</td>
                            <td class="RepeaterTableHead">Search_Name</td>
                            <td class="RepeaterTableHead">Owner_Staff_No.</td>
                            <td class="RepeaterTableHead">Created_Time</td>
                            <td class="RepeaterTableHead">Created_User</td>
                            <td class="RepeaterTableHead">Operation</td>
                        </tr>
                </HeaderTemplate>
                   <ItemTemplate>
                    <tr>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="lbl_no" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:LinkButton ID="lkbtn_searchName" runat="server"  CommandName="Link"></asp:LinkButton></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="lbl_Owner_Staff_No" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="lbl_time" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Label ID="lbl_Created_User" runat="server" Text="Label"></asp:Label></td>
                        <td class="RepeaterTableRow">
                            <asp:Button ID="btn_delete" runat="server" Text="Delete" OnClientClick="return confirmToDel()" CommandName="Delete" CssClass="ButtonStyle" /></td>
                    </tr>                   
                   <%-- <tr id="condition">
                        <td>Conditions:</td>
                        <td colspan="5"><asp:Label ID="lbl_conditions" runat="server" Text="Label"></asp:Label></td>
                        <tr> <td colspan="6"> <hr /> </td> </tr>
                    </tr>--%>
                   </ItemTemplate>

                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div id="tickect_repeater"></div>
    </div>
    </form>
</body>
</html>